Add a task-pool abstraction
authorAlex Crichton <alex@alexcrichton.com>
Sun, 29 Jun 2014 04:23:50 +0000 (21:23 -0700)
committerAlex Crichton <alex@alexcrichton.com>
Mon, 30 Jun 2014 23:00:33 +0000 (16:00 -0700)
commitc1290f9eedac8e555e2a531993f5c4290cda3467
treebcb19fc6bab640ac7181528096f22dc733e96a67
parent1db53b83952ee070d9b951050eec9c3bfc08b769
Add a task-pool abstraction

The standard library also provides a task pool, but it's scheduling is not quite
the desired semantics. This task pool instead has all workers contend on a
shared queue to take work from rather than assigning new jobs to specific
workers for forever.
src/cargo/util/mod.rs
src/cargo/util/pool.rs [new file with mode: 0644]